package com.wanxi.mythis;

public class Student {
    int age;
    String name;

    public Student() {
    }

    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }

    public void sayHello(String name) {
//        System.out.println(name);
        System.out.println(this.name);
    }

}
